<?php

namespace Roles\Form;

use Zend\Form\Form;

class PermisoForm extends Form {

   public function __construct($name = null) {

      //we want to ignore the name passed
      parent::__construct('permisos');
      $this->setAttribute('method', 'post');
      $this->add(array(
         'name' => 'id',
         'attributes' => array(
            'type' => 'hidden',
         ),
      ));
      $this->add(array(
         'name' => 'modulo',
         'attributes' => array(
            'type' => 'text',
         ),
         'options' => array(
            'label' => 'Modulo : ',
         ),
      ));
      $this->add(array(
         'name' => 'accion',
         'attributes' => array(
            'type' => 'text',
         ),
         'options' => array(
            'label' => 'Accion : ',
         ),
      ));
      $this->add(array(
         'name' => 'submit',
         'attributes' => array(
            'type' => 'submit',
            'value' => 'Go',
            'id' => 'submitbutton',
         ),
      ));
   }
}
